var limsControlmaterial = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            index: true
        }, /*{
            field: 'controlMaterialType',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALTYPE',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialType'
            }
        },*/ {
            field: 'controlMaterialName',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALNAME',
            // type: 'link'
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_CONTROLMATERIAL.MAINBATCHCODE'
        }, {
            field: 'expirationDate',
            title: 'T_LIMS_CONTROLMATERIAL.EXPIRATIONDATE',
            type: 'dateTime',
            width: 170
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALLEVEL',
            type: 'select',
            category: 'sys',
            multiple: true,
            param: {
                codeCategoryId: 'controlMaterialLevel'
            }
        }, {
            field: 'manufacturer',
            title: 'T_LIMS_CONTROLMATERIAL.MANUFACTURER'
        }, {
            field: 'activeStatus',
            title: 'T_LIMS_CONTROLMATERIAL.ACTIVESTATUS',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialActiveStatus'
            }
        }, {
            field: 'remark',
            title: 'T_LIMS_CONTROLMATERIAL.REMARK'
        }];
    },

    getBaseInfoFormFields: function () {
        return [/*{
            field: 'controlMaterialType',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALTYPE',
            validators: ['notEmpty', 'strLength[0,33]'],
            preInsert: true,
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialType'
            },
            firstBlank: false
        },*/ {
            field: 'controlMaterialName',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALNAME',
            validators: ['strLength[0,33]', 'notEmpty'],
            preInsert: true
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_CONTROLMATERIAL.MAINBATCHCODE',
            validators: ['strLength[0,33]', 'notEmpty'],
            preInsert: true
        }, {
            field: 'expirationDate',
            title: 'T_LIMS_CONTROLMATERIAL.EXPIRATIONDATE',
            validators: ['notEmpty'],
            preInsert: true,
            type: 'dateTime'
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALLEVEL',
            validators: ['strLength[0,33]', 'notEmpty'],
            preInsert: true,
            type: 'select',
            category: 'sys',
            multiple: true,
            param: {
                codeCategoryId: 'controlMaterialLevel'
            },
            firstBlank: false
        }, {
            field: 'manufacturer',
            title: 'T_LIMS_CONTROLMATERIAL.MANUFACTURER',
            validators: ['strLength[0,66]'],
            preInsert: true
        }, {
            field: 'activeStatus',
            title: 'T_LIMS_CONTROLMATERIAL.ACTIVESTATUS',
            validators: ['notEmpty', 'strLength[0,16]'],
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialActiveStatus'
            },
            firstBlank: false
        }, {
            field: 'remark',
            title: 'T_LIMS_CONTROLMATERIAL.REMARK',
            validators: ['strLength[0,66]'],
            preInsert: true
        },]
    },

    getChooseListColumns: function () {
        return [/*{
            field: 'controlMaterialType',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALTYPE',
            preInsert: true,
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialType'
            }
        },*/ {
            field: 'controlMaterialName',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALNAME'
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_CONTROLMATERIAL.MAINBATCHCODE'
        }, {
            field: 'expirationDate',
            title: 'T_LIMS_CONTROLMATERIAL.EXPIRATIONDATE'
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_CONTROLMATERIAL.CONTROLMATERIALLEVEL',
            type: 'select',
            width: 150,
            category: 'sys',
            multiple: true,
            param: {
                codeCategoryId: 'controlMaterialLevel'
            }
        }, {
            field: 'manufacturer',
            title: 'T_LIMS_CONTROLMATERIAL.MANUFACTURER'
        }, {
            field: 'activeStatus',
            title: 'T_LIMS_CONTROLMATERIAL.ACTIVESTATUS',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialActiveStatus'
            }
        }, {
            field: 'remark',
            title: 'T_LIMS_CONTROLMATERIAL.REMARK'
        },];
    },

    baseUrl: IFM_CONTEXT + '/secure/basemodule/business/qualitycontrol/controlmaterials'
});
